﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="ManageRoles.aspx.cs" Inherits="Modules_Security_ManageRoles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <link href="/css/WebAdminStyles.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="c" Runat="Server">
   <div style="width: 80%; margin-left: 20px">
            <div>
                <p>
                    <b>News Role: </b>
                    <asp:TextBox ID="RoleName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RoleNameReqField" runat="server" ControlToValidate="RoleName"
                        Display="Dynamic" ErrorMessage="Bạn phải nhập RolesName."></asp:RequiredFieldValidator>
                    <asp:Button ID="CreateRoleButton" runat="server" Text="Create Role" OnClick="CreateRoleButton_Click" />
                </p>
            </div>
            <div>
                <asp:GridView ID="RoleList" runat="server" AutoGenerateColumns="False" OnRowDeleting="RoleList_RowDeleting" Width="400px" CellPadding="5">
                    <Columns>
                        <asp:CommandField DeleteText="Delete Role" ShowDeleteButton="True" />
                        <asp:TemplateField HeaderText="Role">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="RoleNameLabel" Text='<%# Container.DataItem %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="callOutStyle" />
                    <RowStyle CssClass="gridRowStyle" />
                    <AlternatingRowStyle CssClass="gridAlternatingRowStyle" />
                </asp:GridView>
            </div>
        </div>
    </div>
</asp:Content>

